<?php
/**
 * Created by 长毋相忘c.
 * 文件用途描述 :
 * Date: 2018/2/19/019
 * Time: 13:20
 */

namespace app\api\controller;


use app\api\service\Token as TokenService;
use think\Controller;

class BaseController extends Controller
{
    //用户和CMS都可以访问的权限
    protected function checkPrimaryScope(){
        TokenService::needPrimaryScope();
    }

    //只有用户能访问的权限
    protected function checkExclusiveScope(){
        TokenService::needExclusiveScope();
    }
}